<?php 
session_start();
require_once 'header.php';
function __autoload($className)
	{
    	require_once('class/' . $className . '.class.php');
	}
$getAgentVote=database::LimitQuery("agent",array(
'select' => 'id,agent_name,good_feetback,bad_feetback',
'condition' => array(
'enable' => 'Y'
)
));
$totalVote=0;
$totalBadVote=0;
foreach($getAgentVote as $agent)
{
	$totalVote=$agent['good_feetback']+$totalVote;
	$totalBadVote=$agent['bad_feetback']+$totalBadVote;
}
require_once 'html/agent_rate.php';
?>